package controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import modelo.Liga;
import vista.vTabladePosiciones;

public class cTabladePosiciones implements ActionListener{
	
	private vTabladePosiciones tablaPos;

	public cTabladePosiciones(Liga liga) {
		super();
		this.tablaPos = new vTabladePosiciones();
		this.tablaPos.setLocation(480, 220);
		this.tablaPos.setVisible(true);
		this.tablaPos.addActionListener(this);
		
	}

	public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();
		if (actionCommand.equals("Salir")) {
			this.tablaPos.setVisible(false);
		}

	}


}
